import { observable, action } from 'mobx';
import { WeaTools } from 'ecCom';

class RssMoreStore {
  @observable state = 0;
  @observable dataSource = [];
  constructor() {
  	this.getDatas = this.getDatas.bind(this);
  }
  @action 
  getDatas(params = {}){
    WeaTools.callApi('/api/portal/elementmore/getRssMoreDatas', 'POST', params).then(result => {
        this.status = result.status || 1;
        this.dataSource = result.datas;
    });
  }
}
export default RssMoreStore;